package cn.china.springbootshiromybatis.serviceimpl;

import cn.china.springbootshiromybatis.service.RoleService;
import entity.Role;
import mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleMapper rm;
    @Override
    public List<Role> selectByUsername(String username) {
        return rm.selectByUsername(username);
    }
}
